define(["jquery", "easy-admin","xm-select"], function ($, ea) {


    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'mall.userseller/index',
        export_url: 'mall.userseller/export',
    };

    var Controller = {
        index: function () {
            ea.table.render({
                init: init,
                height:'full-50',
                toolbar: ['refresh',
                    [],
                    'export'],
                cols: [[
                    {type: "checkbox"},
                    {field: 'id', width: 80, title: 'ID'},
                    {field: 'nickName', minWidth: 80, title: '会员昵称'},
                    {field: 'mobile', minWidth: 80, title: '联系电话'},
                    {field: 'payprice', minWidth: 100, title: '总消费', templet: ea.table.price,search: false},
                    {field: 'costprice', minWidth: 100, title: '总成本',templet: ea.table.price,search: false},
                    {field: 'goodsnum', minWidth: 80, title: '总销量'}
                ]],
            });

            ea.listen();
        },

    };
    return Controller;
});